import request from "@/utils/axios/request";

const getUserInfo = (token: string) => {
  return request.get(`/examme${token}`)
}

const getToken = (data: { email: string, key: string, userId: string }) => {
  return request.post(`/examgetToken${data.key}`, {
    email: data.email,
    userId: data.userId
  })
}

const examApi = {
  getUserInfo,
  getToken
};

export default examApi
